//
//  HHCollectionViewCell.m
//  tantan
//
//  Created by SQHH on 2017/12/20.
//  Copyright © 2017年 SQHH. All rights reserved.
//

#import "HHCollectionViewCell.h"

@interface HHCollectionViewCell () <
UITableViewDataSource,
UITableViewDelegate,
UICollectionViewDelegateFlowLayout,
UICollectionViewDataSource,
UICollectionViewDelegate
>

/// ASDFF数据源
@property (nonatomic, strong) NSMutableArray *data;

/// F
@property (nonatomic, strong) UITableView *ASDFF;

/// FDSAFCollectionViewLayout
@property (nonatomic, strong) UICollectionViewFlowLayout *collectionViewFlowLayout;

/// FDSAF
@property (nonatomic, strong) UICollectionView *FDSAF;

/// FDSAF
@property (nonatomic, strong) UIView *FDSAFDSAF;

@end

@implementation HHCollectionViewCell

#pragma mark - # Delegate
//MARK: UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
	return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
	return self.data.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UITableViewDelegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
	
}

//MARK: UICollectionViewDataSource
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
	return 0;
}

- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
	return 0;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
	return nil;
}

//MARK: UICollectionViewDelegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
	
}

- (id)initWithFrame:(CGRect)frame {
	if (self = [super initWithFrame:frame]) {
		[self.contentView addSubview:self.ASDFF];
		[self.contentView addSubview:self.FDSAF];
		[self.contentView addSubview:self.FDSAFDSAF];
	}
	return self;
}

#pragma mark - # Getter
- (NSMutableArray *)data {
	if (!_data) {
		_data = [[NSMutableArray alloc] init];
	}
	return _data;
}

- (UITableView *)ASDFF {
	if (!_ASDFF) {
		_ASDFF = [[UITableView alloc] init];
		[_ASDFF setDelegate:self];
		[_ASDFF setDataSource:self];
	}
	return _ASDFF;
}

- (UICollectionViewFlowLayout *)collectionViewFlowLayout {
	if (!_collectionViewFlowLayout) {
		_collectionViewFlowLayout = [[UICollectionViewFlowLayout alloc] init];
		[_collectionViewFlowLayout setMinimumLineSpacing:0];
		[_collectionViewFlowLayout setMinimumInteritemSpacing:0];
		[_collectionViewFlowLayout setItemSize:CGSizeMake(0, 0)];
		[_collectionViewFlowLayout setHeaderReferenceSize:CGSizeMake(0, 0)];
		[_collectionViewFlowLayout setFooterReferenceSize:CGSizeMake(0, 0)];
		[_collectionViewFlowLayout setSectionInset:UIEdgeInsetsMake(0, 0, 0, 0)];
	}
	return _collectionViewFlowLayout;
}

- (UICollectionView *)FDSAF {
	if (!_FDSAF) {
		_FDSAF = [[UICollectionView alloc] initWithFrame:CGRectZero collectionViewLayout:self.collectionViewFlowLayout];
		[_FDSAF setBackgroundColor:[UIColor whiteColor]];
		[_FDSAF setDelegate:self];
		[_FDSAF setDataSource:self];
	}
	return _FDSAF;
}

- (UIView *)FDSAFDSAF {
	if (!_FDSAFDSAF) {
		_FDSAFDSAF = [[UIView alloc] init];
	}
	return _FDSAFDSAF;
}

@end
